package com.dc.designPattern._5_adapter._4_demo_mvc;

/**
 * Description: 适配器模式Demo_SpringMvc_Controller
 * @author: gdc
 * @date: 2021/3/11
 * @version 1.0
 */
public interface Controller {
    /**
     * 处理方法
     */
    void doHandler();
}


class HttpController implements Controller{
    @Override
    public void doHandler() {
        System.out.println("http...");
    }
}

class SimpleController implements Controller{
    @Override
    public void doHandler() {
        System.out.println("simple...");
    }
}

class AnnotationController implements Controller{
    @Override
    public void doHandler() {
        System.out.println("annotation...");
    }
}